const http = uni.$u.http

// post请求，获取菜单
export const postMenu = (params, config = {}) => http.post('/ebapi/public_api/index', params, config)

// get请求，获取菜单，注意：get请求的配置等，都在第二个参数中，详见前面解释
export const getMenu = (data) => http.get('/ebapi/public_api/index', data)

// 微信登录
export const login = (params) => http.post(`/wx/user/login`, params)
// 测试登录（使用固定用户参数）
export const testLogin = (params) => http.post(`/wx/user/testLogin`, params)
// 授权
export const auth = (params) => http.post(`/wx/user/postAuth`,params)
//-----------首页---详情-----
// 获取轮播图
export const getSwiperList = () => http.get(`/citylife/NoFront/getSwiperList`)
// 轮播图详情 
export const getSwiperDetail = (id) => http.post('/citylife/NoFront/getSwiperDetail',id)
// 获取new列表
export const getSocietyList = () => http.get(`/citylife/NoFront/getSocietyList`)
// 获取new详情
export const getSocietyById = (params) => http.post(`/citylife/NoFront/getSocietyById`,params)
// 获取 评论列表 
export const getPCommentById = (data) => http.post('/citylife/NoFront/getPCommentById', data)
// 写评论 --需要登录
export const writeComment = (params) => http.post('/citylife/front/writeComment', params)
// 活动点赞
export const societyZan = (params) => http.post('/citylife/front/societyZan',params)
// 取消活动点赞
export const societyZanCancel = (params) => http.post('/citylife/front/societyZanCancel',params)
// 活动点踩
export const societyCai = (params) => http.post('/citylife/front/societyCai',params)
// 取消活动点踩
export const societyCaiCancel = (params) => http.post('/citylife/front/societyCaiCancel',params)
// 活动评论点赞
export const societyCommentZan = (params) => http.post('/citylife/front/societyCommentZan',params)
// 取消活动评论点赞
export const societyCommentZanCancel = (params) => http.post('/citylife/front/societyCommentZanCancel',params)
// 活动评论点踩
export const societyCommentCai = (params) => http.post('/citylife/front/societyCommentCai',params)
// 取消活动评论点踩
export const societyCommentCaiCancel = (params) => http.post('/citylife/front/societyCommentCaiCancel',params)
// 获取用户的当前状态
export const getActivityUserStatus = (params) => http.post('/citylife/front/getActivityUserStatus',params)	
// 根据父评论pid获取子评论列表
export const getChildCommentByPId = (params) => http.post('/citylife/NoFront/getChildCommentByPId',params)
// 根据父评论pid获取子评论的状态
export const getActivityUserTwoStatus = (params) => http.post('/citylife/front/getActivityUserTwoStatus',params)
// 收藏活动 
export const societyCollect = (params) => http.post('/citylife/front/societyCollect',params)
// 取消收藏
export const societyCollectCancel = (params) => http.post('/citylife/front/societyCollectCancel',params)
// ---------- 我的-----个人信息
// 用户信息修改
export const updateMiniUser = (params) => http.post('/citylife/front/updateMiniUser',params)
// ------------店铺------
// 获取店铺列表
export const getStoreList = () => http.get(`/store/NoFront/getStoreList`)
// 获取店铺详情
export const getShopById = (params) => http.post('/store/NoFront/getStoreById',params)
// 根据标签查询--推荐
export const getRecommendList = (params) => http.post('/store/NoFront/getRecommendList',params)
// 给店铺点赞
export const storeZan = (params) => http.post('/store/front/storeZan',params)
// 取消店铺点赞
export const storeZanCancel = (params) => http.post('/store/front/storeZanCancel',params)
// 获取用户店铺点赞收藏状态
export const getStoreUserStatus = (params) => http.post('/store/front/getStoreUserStatus',params)
// 根据tags查询
export const selectByTags = (params) => http.post('/store/NoFront/selectByTags',params)
// 收藏店铺 
export const storeCollect = (params) => http.post('/store/front/storeCollect',params)
// 取消收藏店铺 
export const storeCollectCancel = (params) => http.post('/store/front/storeCollectCancel',params)
// ******************----------------------
// 帮助中心 
export const helpCenter = (params) => http.post('/citylife/front/helpCenter',params)
// 获取政府单位
export const getListByArea = (params) => http.post('/citylife/NoFront/getListByArea',params)
// 我的--收藏列表
export const getCollectList = (params) => http.post('/citylife/front/getCollectList',params)
// --------发布------*** 
//    社会资讯  -- 提交
export const submitSociety = (params) => http.post('/citylife/front/submitSociety',params)
//    社会资讯 --查询  前面已有
//   求职  -- 提交
export const submitJubHunt = (params) => http.post('/citylife/front/submitJubHunt',params)
//   求职  -- 查询
export const getJobHuntList = (params) => http.post('/citylife/NoFront/getJobHuntList',params)
//   招聘 -- 提交
export const submitRecruit = (params) => http.post('/citylife/front/submitRecruit',params)
//   招聘 -- 查询
export const getRecruitList = (params) => http.post('/citylife/NoFront/getRecruitList',params)
//   房屋  -- 提交
export const submitHouse = (params) => http.post('/citylife/front/submitHouse',params)
//   房屋 -- 查询
export const getHouseList = (params) => http.post('/citylife/NoFront/getHouseList',params)
//   周末游  -- 提交
export const submitWeekendTour = (params) => http.post('/citylife/front/submitWeekendTour',params)
//   周末游列表  -- 查询
export const getWeekendTour = (params) => http.post('/citylife/NoFront/getWeekendTour',params)
//   拼车
export const submitCarPool = (params) => http.post('/citylife/front/submitCarPool',params)
//   我的发布
export const getMyIssueList = (params) => http.post('/citylife/front/getMyIssueList',params)
//   招聘详情
export const getRecruitDetail = (params) => http.post('/citylife/NoFront/getRecruitDetail',params)
//   招聘收藏状态
export const getRecruitCollectStatus = (params) => http.post('/citylife/front/getRecruitCollectStatus',params)
//  招聘收藏  -- 取消
export const recruitCollectCancel = (params) => http.post('/citylife/front/recruitCollectCancel',params)
//  招聘收藏 -- 收藏
export const recruitCollect = (params) => http.post('/citylife/front/recruitCollect',params)
//  求职详情
export const getJobHuntDetail = (params) => http.post('/citylife/NoFront/getJobHuntDetail',params)
//  求职收藏状态
export const getJobHuntCollectStatus = (params) => http.post('/citylife/front/getJobHuntCollectStatus',params)
//  求职收藏  -- 取消
export const jobHuntCollectCancel = (params) => http.post('/citylife/front/jobHuntCollectCancel',params)
//  求职收藏 -- 收藏
export const jobHuntCollect = (params) => http.post('/citylife/front/jobHuntCollect',params)
//  周末游 详情 
export const getWeekTourDetail = (params) => http.post('/citylife/NoFront/getWeekTourDetail',params)
//  周末游收藏状态
export const getWeekTourCollectStatus = (params) => http.post('/citylife/front/getWeekTourCollectStatus',params)
//  周末游收藏  -- 取消
export const weekendTourCollectCancel = (params) => http.post('/citylife/front/weekendTourCollectCancel',params)
//  周末游收藏 -- 收藏
export const weekendTourCollect = (params) => http.post('/citylife/front/weekendTourCollect',params)
//  房屋详情
export const getHouseDetail = (params) => http.post('/citylife/NoFront/getHouseDetail',params)
//  房屋收藏状态
export const getHouseCollectStatus = (params) => http.post('/citylife/front/getHouseCollectStatus',params)
//  房屋收藏  -- 取消
export const houseCollectCancel = (params) => http.post('/citylife/front/houseCollectCancel',params)
//  房屋收藏 -- 收藏
export const houseCollect = (params) => http.post('/citylife/front/houseCollect',params)
//  拼车列表
export const getCarPoolList = (params) => http.post('/citylife/NoFront/getCarPoolList',params)
//  拼车详情
export const getCarPoolDetail = (params) => http.post('/citylife/NoFront/getCarPoolDetail',params)
//  推荐列表 -未登录
export const getRecommenderNoLogin = () => http.get(`/citylife/NoFront/getRecommenderNoLogin`)
//  推荐列表 -登录
export const getRecommenderOfLogin = () => http.post('/citylife/front/getRecommenderOfLogin')
// 查询--------------------,,,,
export const searchSociety = (params) => http.post('/citylife/NoFront/searchSociety',params)
export const searchStore = (params) => http.post('/store/NoFront/searchStore',params)
export const searchJobHunt = (params) => http.post('/citylife/NoFront/searchJobHunt',params)
export const searchRecruit = (params) => http.post('/citylife/NoFront/searchRecruit',params)
export const searchWeekendTour = (params) => http.post('/citylife/NoFront/searchWeekendTour',params)
//-------------------------------------